﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Administrating
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script type="text/javascript">
    var model = {
        items: ko.observableArray([{ name: "first", index: "1" }, { name: "first", index: "1"}])
    }
    ko.applyBindings(model);
    model;

</script>
<script type="text/html" id="listItem">
    <li data-bind="text:name">
        <span data-bind="text:index"></span>
     
    </li>
</script>
<ul data-bind="template:{name:listItem,foreach:items}"></ul>
<div data-bind="text:ko.toJSON(model)"></div>

</asp:Content>
